<template>
	<view class="">
		<view class="followNav">
			<view class="icon">
				<text class="iconfont iconicon_huabanfuben"><text class="icon-text">随拍</text></text>
			</view>
			<view class="middle">
				<navigator 
				open-type="switchTab" 
				class="text" 
				url="/pages/follow/follow"
				:style="follow"
				>
					关注
				</navigator>
				<navigator 
				open-type="switchTab" 
				class="text" 
				:style="friend"
				url="/pages/friends/friends">
					好友
				</navigator>
			</view>
		</view>
		<view class="ground">
		</view>
	</view>
	
</template>

<script>
	export default {
		props:[
			'page'
		],
		data() {
			return {
				follow:'',
				friend:''
			};
		},
		mounted() {
			if(this.page==="friend"){
				this.friend="padding-bottom:5px;border-bottom: 2px solid #F0AD4E;"
			}else{
				this.follow="padding-bottom:5px;border-bottom: 2px solid #F0AD4E;"
			}
		}
	}
</script>

<style>
.ground{
	width: 100%;
	height: 60px;
}
.followNav{
	width: 100%;
	position:fixed;
	top:25px;
	left:0;
	height: 35px;
	line-height:35px;
	margin:0 auto;
	z-index: 20;
}
.icon{
	position:absolute;
	top:0;
	left:5px;
	color: #FFFFFF;
	width: 20%;
	text-align: center;
	font-size: 20px;
}
.middle{
	text-align: center;
}
.text{
	display: inline;
	color: #FFFFFF;
	margin: 0 10px;
	font-size:15px
}
.icon-text{
	font-size:15px;
	margin-left: 5px;
}

</style>
